package com.wing.warehouse.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.warehouse.model.entity.BoxLabel;
import com.wing.warehouse.model.request.BoxLabelForm;
import com.wing.warehouse.model.response.BoxLabelVO;

import java.util.List;
import java.util.Map;

/**
 * 料箱存储包装编码表-Service
 *
 * @author
 */
public interface BoxLabelService extends IService<BoxLabel> {

    /**
     * 添加
     *
     * @param boxLabelForm
     * @return
     */
    int add(BoxLabelForm boxLabelForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<BoxLabelVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<BoxLabelVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    BoxLabelVO get4appById(Long id);


    /**
     * 根据boxId查询库存明细
     * @return
     */
    List<Object> getBoxLabBySkuCodeAndWarehouseIdList(String skuCode,Long warehouseId,String sourceType);

    /**
     * 根据skuCode和warehouseId查询涉及库房和料箱
     * @param skuCode
     * @param warehouseId
     * @return
     */
    BoxLabelVO getBoxLabBySkuAndWarehouseId(String skuCode,Long warehouseId);
}
